import { Module } from '@nestjs/common';
import { EmailService } from './email.service';
import { MailerModule } from '@nestjs-modules/mailer';
// zfhfdlicuxurbabh
// kbwamaekainwjbhd
@Module({
  imports: [
    MailerModule.forRoot({
      transport: {
        host: 'smtp.qq.com',
        port: 465,
        secure: true,
        auth: {
          user: '1272029991@qq.com',
          pass: 'kbwamaekainwjbhd',
        },
      },
      defaults: {
        from: '"TEST" <1272029991@qq.com>',
      },
    }),
  ],
  exports: [EmailService],
  providers: [EmailService],
})
export class EmailModule {}
